package com.cindata

class WorkflowStageCondition
{
    Integer executeSequence = 0
    String message
    String logs

    Component component

    WorkflowStage nextStage

    static belongsTo = [workflowStage: WorkflowStage]

    static mapping = {
        autowire true
    }

    static constraints = {
        executeSequence unique: ['workflowStage']
        logs maxSize: 2048, nullable: true, blank: true
        message maxSize: 2048, blank: true, nullable: true
        nextStage nullable: true, blank: true
    }

}